You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clValue Structure > clValue Methods > clValue.FixAngle Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clValue.FixAngle Method

Sets angle in [-2PI,2PI].

Syntax
C#
Visual Basic
public TOpenCLValue FixAngle([In] TOpenCLValue Src);

ThetaRad within -2Math387.PI and Math387.PI interval.

Calling this function prior to passing the value to trigonometric functions can significantly improve numerical accuracy. 

Sine/cosine appear within many other functions especially complex versions of trigonometric functions. FixAngle method is not used implicitely within TOpenCLValue methods. To achieve maximum performance make sure that the arguments passed to complex trigonometric functions are "small" or scaled down. This is where "FixAngle" can help. 

Note The vector must be real.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!